<!DOCTYPE html>
<html data-dpr="1" style="font-size: 39px;">

<head>
    {include file="common/meta2" /}
    {include file="common/meta3" /}

</head>

<body class="jui_bg_grey" style="font-size: 12px;">
    <!-- 头部 -->
    <div class="jui_top_bar">
        <a class="jui_top_left" href="/index/user/index"><img
                src="/assets/img2/back_111.png"></a>
        <div class="jui_top_middle">留言反馈</div>
        <a href="/index/user/mlogs" class="jui_top_right jui_fc_fff">反馈记录</a>
    </div>
    <!-- 头部end -->
    <!-- 主体 -->
    <form id="setform" name="setform">
        <div class="jui_h12"></div>
        <div class="jui_bg_fff">
            <div class="jui_public_list jui_flex_justify_between">
                <p>手机/微信</p>
                <input class="jui_flex1 jui_text_right" type="text" placeholder="对方手机或微信号" name="m_title" id="m_title">
            </div>
            <div class="jui_public_list jui_flex_justify_between">
                <p>投诉类型</p>
                <select class="jui_flex1 jui_pad_r12" dir="rtl" name="m_type">
                    <option value="0" selected="selected">联系不到对方</option>
                    <option value="1">恶意抬高定价</option>
                    <option value="2">销售伪劣产品</option>
                    <option value="3">交易存在欺诈</option>
                    <option value="4">其他违规行为</option>
                </select>
                <img class="jui_arrow_rimg" src="/assets/img2/jt_right.png">
            </div>
        </div>
        <div class="jui_h12"></div>
        <textarea class="lyfk_textarea" name="m_infos" cols="" rows="3" id="m_infos"
            placeholder="请详细描述您的投诉内容"></textarea>
        <div class="jui_public_btn"><input type="button" value="提交"></div>
    </form>
    <script language="javascript">
        $(function () {
            $('.jui_public_btn').click(function () {
                var m_title = $('#m_title').val();
                if (m_title.trim() == '') {
                    layer.msg('请填写您要投诉的手机/微信'); return;
                }
                var m_infos = $('#m_infos').val();
                if (m_infos.trim() == '') {
                    layer.msg('请填写详细投诉内容'); return;
                }
                var xxx = new FormData(document.querySelector("form"));
                $.ajax('/index/user/message', {
                    method: 'POST', data: xxx, processData: false, contentType: false,
                    success: function (data) {
                        if (data.code == 1) {
                            layer.msg(data.msg, { icon: 1, time: 1000 }, function () {
                                window.location.href = '/index/user/mlogs';
                            });
                        } else {
                            layer.msg(data.msg);
                        }
                    }, dataType: 'json'
                });
            });
        });
    </script>

    <div class="jui_h80"></div>

   

</body>

</html>